#ifndef TPLATE
#define TPLATE
#include "ti_3D.h"
#include <vector>
using namespace std;

typedef struct {
    int tpsize;
    int *pos;
} tplate;

typedef struct {
    int dvsize;
    int *tpos;
    int *pos;
    int **value;
} data_event;

typedef struct {
    int dvsize;
    int *tpos;
    int *pos;
    float *value;
} data_event_cont;

void load_template_3D(tplate * tp, char *fn);
void get_dv_3D(data_event * dv, tplate * tp, target_grid_3D * target,
               int g, int x, int y, int z, int max_dv = 10);

#endif                            /* ifndef TPLATE */
